package com.moji.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品详情
 * </p>
 *
 * @author myg
 * @since 2024-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="MjProductDetail对象", description="产品详情")
public class MjProductDetail extends Model<MjProductDetail> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "产品id")
    private Long productId;

    @ApiModelProperty(value = "产品类型  1 免费版  2 包年版  3 个性定制版")
    private Integer productType;

    @ApiModelProperty(value = "产品类型名称")
    private String typeName;

    @ApiModelProperty(value = "产品描述")
    private String decrible;

    @ApiModelProperty(value = "产品服务时长")
    private String productDuration;

    @ApiModelProperty(value = "优惠力度")
    private String productPreferential;

    @ApiModelProperty(value = "属性名称(富文本形式)")
    private String attributeName;

    @ApiModelProperty(value = "属性描述(富文本形式)")
    private String attributeDescrible;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "属性图片地址")
    private String attributeImgurl;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
